package gis.utils;

/**
 * Created by Administrator on 2015/11/18.
 */
public class Constants {

    // 日志标签
    public static final String ISERVER_TAG = "iserver";

    // utf-8
    public static final String UTF8 = "utf-8";

    // 经纬坐标系
    public static final String DEFAULT_PRJCOORDSYS_TYPE = "PCS_EARTH_LONGITUDE_LATITUDE";

    // 普通平面坐标系
    public static final String PCS_NON_EARTH = "PCS_NON_EARTH";

    // 记录初始地图服务的配置文件
    public static final String INIT_CONFIG_FILE_NAME = "init_mapresourceinfo.xml";

    // 记录添加的地图服务的配置文件
    public static final String CONFIG_FILE_NAME = "mapresourceinfos.xml";

    /**
     * 文件上传URL
     */
    public static final String URL_UPFILE = "http://172.16.157.34:8080//guanqu/ReceiveServlet";
    /**
     * 文件下载URL
     */
    //public static final String URL_DOWNFILE = "http://192.168.1.105:8080/ECSFileServer/SendServlet";

    public static final int RESULT_CODE = 200;//服务器成功返回的CODE

    public static final int UPLOAD_SUCCESS = 0x123;//上传成功，给主界面的消息
    public static final int UPLOAD_FAIL = 0x124;//上传失败，给主界面的消息

    public static final int DOWNLOAD_SUCCESS = 0x125;//下载成功，给主界面的消息
    public static final int DOWNLOAD_FAIL = 0x126;//下载失败，给主界面的消息

    public static final int MESSAGE_DOWN = 1;//聊天对话的文件下载
    public static final int TROUBLE_DOWN = 2;//故障文件下载
    public static final int IMAGE_DOWN = 3;//用户头像下载

    public static final int IMAGE_UP = 4;//用户头像上传
    public static final int MESSAGE_UP = 5;//聊天对话的文件上传

    public static final double PATEER_LONG = 6.45791111225699;
    public static final double PATEER_LATI = -0.46770999745839;

    public static final double JULI_LONG = 6.4579044626404;
    public static final double JULI_LATI = -0.46755188745897;

    // 定义偏移量
//    public static final double LONGITUDE_OFFSET = 1.0724963420831;//
//    public static final double LATITUDE_OFFSET = -0.42028491250584;

    public static final double LONGITUDE_OFFSET = 0;//
    public static final double LATITUDE_OFFSET = 0;
}


